package com.hfdg.prototype.base.init;

import com.hfdg.prototype.base.commponet.StartExplorerAfterStarted;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @ClassName ApplicationInitAfterStarted
 * @Description TODO
 * @Author yuelh
 * @Date 2020-3-18 11:17
 * @Version 1.0
 * @Company 会飞的锅工作室
 **/
@Component
@Order(1)
public class ApplicationInitAfterStarted implements ApplicationRunner {
    Logger logger = LoggerFactory.getLogger(ApplicationInitAfterStarted.class);
    @Autowired
    StartExplorerAfterStarted startExplorerAfterStarted;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        logger.info("全局应用启动后执行......");
        startExplorerAfterStarted.openExplorerAfterStarted();
    }
}
